package com.china08.yxyapi.entity.db.huodong;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 微课活动用户选择的目录
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "Yxy_huodong_weike_contest_catalogue", catalog = "yxy_huodong")
public class YxyHuodongWeikeContestCatalogue extends BaseEntity {

    @Column(name = "user_id", columnDefinition = "varchar(32) comment '用户id'", nullable = false)
    private String userId;

    /**
     * 学段id
     */
    @Column(name = "phase_id", nullable = false, columnDefinition = "varchar(32) comment '学段id'")
    private String phaseId;

    /**
     * 学段名称 redundant column
     */
    @Column(name = "phase_name", columnDefinition = "varchar(32) comment '学段名称' ")
    private String phaseName;

    /**
     * 学科id redundant column
     */
    @Column(name = "subject_id", columnDefinition = "varchar(32) comment '学科id' ")
    private String subjectId;

    /**
     * 学科名称, redundant column
     */
    @Column(name = "subject_name", columnDefinition = "varchar(32) comment '学科名称' ")
    private String subjectName;

    @Column(name = "version_id", length = 32, nullable = false)
    private String versionId = "";

    @Column(name = "version_name", length = 255, nullable = false)
    private String versionName = "";

    /**
     * 学期id
     */
    @Column(length = 32, nullable = false)
    private String semesterId = "";

    /**
     * 学期名称，一年级上册，必修，选修
     */
    @Column(length = 255, nullable = false)
    private String semesterName = "";

    /**
     * 挂载节点id
     */
    @Column(length = 32, nullable = false)
    private String bookContentId = "";

    /**
     * 挂载的节点名
     */
    @Column(length = 255, nullable = false)
    private String bookContentName = "";

    @Column(name = "knows_ids", columnDefinition = "varchar(255) comment '知识点id,使用逗号分割' ")
    private String knowIds;

    @Column(name = "know_names", columnDefinition = "varchar(255) comment '知识点名称,使用逗号分割' ")
    private String knowNames;

    @Column(name = "status", columnDefinition = "tinyint(1) default 1 comment '0:未上传 1:上传成功' ")
    private Boolean status = false;

    @Column(name = "weike_res_id", columnDefinition = "varchar(32) comment '微课资源id,上传之后赋值' ")
    private String weikeResId;

    // 是否报名 点击报名的时候把false 改为true
    @Column(name = "is_apply")
    private boolean isApply = false;

    public boolean isApply() {
        return isApply;
    }

    public void setApply(boolean isApply) {
        this.isApply = isApply;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPhaseId() {
        return phaseId;
    }

    public void setPhaseId(String phaseId) {
        this.phaseId = phaseId;
    }

    public String getPhaseName() {
        return phaseName;
    }

    public void setPhaseName(String phaseName) {
        this.phaseName = phaseName;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(String semesterId) {
        this.semesterId = semesterId;
    }

    public String getSemesterName() {
        return semesterName;
    }

    public void setSemesterName(String semesterName) {
        this.semesterName = semesterName;
    }

    public String getBookContentId() {
        return bookContentId;
    }

    public void setBookContentId(String bookContentId) {
        this.bookContentId = bookContentId;
    }

    public String getBookContentName() {
        return bookContentName;
    }

    public void setBookContentName(String bookContentName) {
        this.bookContentName = bookContentName;
    }

    public String getKnowIds() {
        return knowIds;
    }

    public void setKnowIds(String knowIds) {
        this.knowIds = knowIds;
    }

    public String getKnowNames() {
        return knowNames;
    }

    public void setKnowNames(String knowNames) {
        this.knowNames = knowNames;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getWeikeResId() {
        return weikeResId;
    }

    public void setWeikeResId(String weikeResId) {
        this.weikeResId = weikeResId;
    }

}
